import service from '@/utils/request'
// @Tags LsShop
// @Summary 创建lsShop表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.LsShop true "创建lsShop表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /lsShop/createLsShop [post]
export const createLsShop = (data) => {
  return service({
    url: '/lsShop/createLsShop',
    method: 'post',
    data
  })
}

// @Tags LsShop
// @Summary 删除lsShop表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.LsShop true "删除lsShop表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /lsShop/deleteLsShop [delete]
export const deleteLsShop = (params) => {
  return service({
    url: '/lsShop/deleteLsShop',
    method: 'delete',
    params
  })
}

// @Tags LsShop
// @Summary 批量删除lsShop表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除lsShop表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /lsShop/deleteLsShop [delete]
export const deleteLsShopByIds = (params) => {
  return service({
    url: '/lsShop/deleteLsShopByIds',
    method: 'delete',
    params
  })
}

// @Tags LsShop
// @Summary 更新lsShop表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.LsShop true "更新lsShop表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /lsShop/updateLsShop [put]
export const updateLsShop = (data) => {
  return service({
    url: '/lsShop/updateLsShop',
    method: 'put',
    data
  })
}

// @Tags LsShop
// @Summary 用id查询lsShop表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query model.LsShop true "用id查询lsShop表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /lsShop/findLsShop [get]
export const findLsShop = (params) => {
  return service({
    url: '/lsShop/findLsShop',
    method: 'get',
    params
  })
}

// @Tags LsShop
// @Summary 分页获取lsShop表列表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取lsShop表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /lsShop/getLsShopList [get]
export const getLsShopList = (params) => {
  return service({
    url: '/lsShop/getLsShopList',
    method: 'get',
    params
  })
}

// @Tags LsShop
// @Summary 不需要鉴权的lsShop表接口
// @Accept application/json
// @Produce application/json
// @Param data query shopsReq.LsShopSearch true "分页获取lsShop表列表"
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
// @Router /lsShop/getLsShopPublic [get]
export const getLsShopPublic = () => {
  return service({
    url: '/lsShop/getLsShopPublic',
    method: 'get',
  })
}
